package com.dong.payment.service.impl;

import com.dong.payment.dao.PaymentDao;
import com.dong.payment.service.PaymentService;
import com.dong.springcloud.entities.Payment;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 支付接口实现类
 * </p>
 *
 * @author: DJ
 * @Date: 15:26 2021/12/25
 */
@Service
@AllArgsConstructor
public class PaymentServiceImpl implements PaymentService {

    private PaymentDao paymentDao;

    @Override
    public int insert(Payment payment) {
        return paymentDao.insert(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
